package com.solution.pc.order.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.solution.pc.order.dao.OrderAlipayNotifyLogDao;
import com.solution.pc.order.entity.OrderAlipayNotifyLogEntity;
import com.solution.common.dao.impl.BaseDaoImpl;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 订单支付宝支付日志DAO实现
 * @author llp
 * @date 2017-10-19 09:36:39
 */
@Repository
public class OrderAlipayNotifyLogDaoImpl extends BaseDaoImpl<OrderAlipayNotifyLogEntity> implements OrderAlipayNotifyLogDao {

	/**
	 * 保存订单支付宝支付日志信息
	 * @param orderAlipayNotifyLogEntity
	 * @return
	 * @author llp
	 * @date 2017-10-19 09:36:39
	 */
	@Override
	public long saveOrderAlipayNotifyLog(OrderAlipayNotifyLogEntity orderAlipayNotifyLogEntity) {
		return super.insert(orderAlipayNotifyLogEntity);
	}

	/**
	 * 分页查询订单支付宝支付日志信息
	 * @param pageParam 分页对象
	 * @param orderAlipayNotifyLog 分页参数
	 * @return PageBean 分页参数及数据
	 * @author llp
	 * @date 2017-10-19 09:36:39
	 */
	public PageBean listOrderAlipayNotifyLogPage(PageParam pageParam, Map<String, Object> param) {
		return super.listPage(pageParam, param);
	}

	/**
	 * 更新订单支付宝支付日志
	 * @param orderAlipayNotifyLogEntity
	 * @return
	 * @author llp
	 * @date 2017-10-19 09:36:39
	 */
	@Override
	public int updateOrderAlipayNotifyLog(OrderAlipayNotifyLogEntity orderAlipayNotifyLogEntity) {
		return super.update(orderAlipayNotifyLogEntity);
	}

	/**
	 * 删除订单支付宝支付日志
	 * @param orderAlipayNotifyLogId
	 * @return
	 * @author llp
	 * @date 2017-10-19 09:36:39
	 */
	public int deleteOrderAlipayNotifyLogById( Long id) {
		return super.deleteById(id);
	}
	
	/**
	 * 根据条件查询订单支付宝支付日志
	 * @param param
	 * @return
	 * @author llp
	 * @date 2017-10-19 09:36:39
	 */
	@Override
	public List<OrderAlipayNotifyLogEntity> listOrderAlipayNotifyLog( Map<String, Object> param) {
		return super.listBy(param);
	}
}
